package youcaihuaoa.weetop.com.ui.adapter

import android.text.TextUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.model.CustomListItemBean
import com.robot.base.model.WagesProfileItemBean
import com.robot.base.utils.pic.ImageLoaderUtils
import youcaihuaoa.weetop.com.R

class WagesProfileItemAdapter : BaseQuickAdapter<WagesProfileItemBean, BaseViewHolder>(
    R.layout.app_item_wages_profile
) {
    override fun convert(holder: BaseViewHolder, item: WagesProfileItemBean) {
        holder.setText(R.id.tv_title, item.title)
        holder.setText(R.id.tv_content, item.content)
        holder.setText(R.id.tv_desc, item.desc)
        holder.setVisible(R.id.tv_desc, !TextUtils.isEmpty(item.desc))
    }
}